package springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SuppressWarnings("all")

//exclude = DataSourceAutoConfiguration.class 表示取消数据源的自动配置
//而是使用自定义的 seata 代理数据源【DataSourceProxy】
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//启用 服务发现
@EnableDiscoveryClient
//启用 openfeign
@EnableFeignClients
public class SeataStorageMicroServiceApplication10010 {
    public static void main(String[] args) {
        SpringApplication.run(SeataStorageMicroServiceApplication10010.class, args);
    }
}
